﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Tigera.UICommon;
using Plugin.TradeSharp.UserControls;

namespace Plugin.TradeSharp.Forms
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void toolStripButton_RSKSetting_Click(object sender, EventArgs e)
        {
            
            ShowForm(typeof(UCRiskSetting));
            
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            ShowForm(typeof(UCLogSetting));

            
        }

        private void ShowForm(Type t)
        {
            FormContainer form = new FormContainer();
            form.SetControl(t);
            form.Owner = this;
            form.Show();
        }
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            ShowForm(typeof(UCHandTrade));
        }
    }
}
